<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    <div class="form-group">
        <label for="c-instumentname" class="control-label col-xs-12 col-sm-2">{:__('Instumentname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-instumentname" data-rule="required" class="form-control selectpage" data-source="/admin/filedata/insnames" name="row[instumentname]" type="text" value="" data-select-only="true"> 
        </div>
    </div>
    <div class="form-group">
        <label for="c-instumenttype" class="control-label col-xs-12 col-sm-2">{:__('Instumenttype')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-instumenttype" data-rule="required;xxx" data-rule-xxx="[/^[A-Za-z0-9]+$/, '{:__('Please Choice Instument Style')}']" class="form-control" name="row[instumenttype]">
                <option value="" selected>{:__('Please Choice Instument Style')}</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="c-instumentsno" class="control-label col-xs-12 col-sm-2">{:__('Instumentsno')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-instumentsno" data-rule="required" class="form-control" name="row[instumentsno]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-projectname" class="control-label col-xs-12 col-sm-2">{:__('Projectname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-projectname" data-rule="required" class="form-control" name="row[projectname]" type="text" value="">
        </div>
    </div>
  <!--   <div class="form-group">
        <label for="c-filenum" class="control-label col-xs-12 col-sm-2">{:__('Filenum')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-filenum" data-rule="required" class="form-control" name="row[filenum]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label for="c-filecapacity" class="control-label col-xs-12 col-sm-2">{:__('Filecapacity')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-filecapacity" data-rule="required" class="form-control" name="row[filecapacity]" type="number" value="0">
        </div>
    </div> -->
    <div class="form-group">
        <label for="c-datasource" class="control-label col-xs-12 col-sm-2">{:__('Datasource')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-datasource" data-rule="required" class="form-control" name="row[datasource]" type="text" value="">
        </div>
    </div>
<!--     <div class="form-group">
        <label for="c-datafiles" class="control-label col-xs-12 col-sm-2">{:__('Datafiles')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="filedataattachmentid" data-rule="required" class="form-control" size="50" name="row[fileattachmentids]" type="text" value="" readonly="">
                <input id="filedatasize" data-rule="required" class="form-control" size="50" name="row[fileattachmentsize]" type="text" value="" readonly="">
                
                <input id="c-datafiles" data-rule="required" class="form-control" size="50" name="row[datafiles]" type="text" value="" readonly="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-datafiles" data-filedataattachmentid="filedataattachmentid" data-filedatasize="filedatasize" data-url="/admin/ajax/uploadfiledata" data-multipart="" class="btn btn-danger pluploadfiles" data-maxcount="" data-mimetype="" data-input-id="c-datafiles" disabled="true" data-multiple="true"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <!-- <span><button type="button" id="fachoose-datafiles" class="btn btn-primary fachoose" data-input-id="c-datafiles" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span> 
                    plupload
                   
                </div>                
                <span class="msg-box n-right" id="data-prview-id" for="c-datafiles"></span>
            </div>
            
        </div>
    </div> 
    <div class="form-group">
        <label for="c-refreshtime" class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <span class="" id="data-prview-tips" for="c-datafiles"></span>
        </div>
    </div>-->
    <div class="form-group">
        <label for="c-refreshtime" class="control-label col-xs-12 col-sm-2">{:__('Refreshtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-refreshtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[refreshtime]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>

    {if condition=" $showFiveMemoColumn "}
    <div class="form-group">
        <label for="c-field1" class="control-label col-xs-12 col-sm-2">{:__('Field1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field1" data-rule="required" class="form-control" name="row[field1]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-field2" class="control-label col-xs-12 col-sm-2">{:__('Field2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field2" data-rule="required" class="form-control" name="row[field2]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-field3" class="control-label col-xs-12 col-sm-2">{:__('Field3')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field3" data-rule="required" class="form-control" name="row[field3]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-field4" class="control-label col-xs-12 col-sm-2">{:__('Field4')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field4" data-rule="required" class="form-control" name="row[field4]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-field5" class="control-label col-xs-12 col-sm-2">{:__('Field5')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field5" data-rule="required" class="form-control" name="row[field5]" type="text">
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="normal"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label for="c-state" class="control-label col-xs-12 col-sm-2">{:__('State')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="stateList" item="vo"}
            <label for="row[state]-{$key}"><input id="row[state]-{$key}" name="row[state]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>





    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
           <!--  <button id="k-reset" type="reset" class="btn btn-default btn-embossed">{:__('Cancel')}</button> -->
        </div>
    </div>
</form>

